package com.chinasoft.tw.service.wisimei;

import com.chinasoft.tw.pojo.Info;
import com.chinasoft.tw.service.TrueWord;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

public class WuSiMei implements TrueWord {
    String name;
    List<String> wordList = new ArrayList<>();
    Random random = new Random();
    public WuSiMei() {
        this.name = "伍";
        wordList.add("今天下课了 ！");
        wordList.add("大家都不喜欢玩游戏 ！");
        wordList.add("明天上课 ！");
    }
    @Override
    public Info getTrueWord() {
        int index = random.nextInt(wordList.size());
        Info info = new Info(name, wordList.get(index));

        return info;
    }
}
